package com.ruoyi.merchant.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.merchant.domain.Orders;
import com.ruoyi.merchant.service.OrdersService;
import com.ruoyi.merchant.mapper.OrdersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author 25714
* @description 针对表【orders(订单表)】的数据库操作Service实现
* @createDate 2025-05-19 14:33:47
*/
@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders>
    implements OrdersService{
    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<Map<String, Object>> getVerificationRecordByMid(Long id) {
        return ordersMapper.getVerificationRecordByMid(id);
    }

    @Override
    public List<Map<String, Object>> getVerificationRecordByusername(String username, Long id) {
        return ordersMapper.getVerificationRecordByusername(username, id);
    }

    @Override
    public Orders selectOrderverificationRecordByCode(Long id, String code) {
        return ordersMapper.selectOrderverificationRecordByCode(id, code);
    }
}




